<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ include file="../header.jsp" %>
<!DOCTYPE html>
<html>
<head>
  <title>用户个人信息</title>
  <link rel="stylesheet" href="${pageContext.request.contextPath}/css/style.css">
</head>
<body>
<div class="container">
  <h2>用户个人信息</h2>

  <c:if test="${empty managementUser}">
    <div class="error-message">用户信息未找到！</div>
  </c:if>

  <c:if test="${not empty managementUser}">
    <table class="user-table">
      <tr>
        <th>ID</th>
        <td>${managementUser.managementId}</td>
      </tr>
      <tr>
        <th>用户名</th>
        <td>${managementUser.username}</td>
      </tr>
      <tr>
        <th>姓名</th>
        <td>${managementUser.name}</td>
      </tr>
      <tr>
        <th>部门ID</th>
        <td>${managementUser.departmentId}</td>
      </tr>
      <tr>
        <th>联系方式</th>
        <td>${managementUser.contactInfo}</td>
      </tr>
      <tr>
        <th>创建时间</th>
        <td>${managementUser.createTime}</td>
      </tr>
    </table>

    <div style="margin-top: 20px;">
      <%--<a href="${pageContext.request.contextPath}/managementUsers?action=edit&id=${user.managementId}" class="add-btn">编辑信息</a>--%>
      <%--<button onclick="window.location.href='list.jsp'" class="back-btn">返回列表</button>--%>
    </div>
  </c:if>
</div>
</body>
</html>